package com.culturalCenter.dataCenter.customEntity.requestParam;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

@ApiModel(value = "接收生成token参数", description = "请求参数类")
public class RequestToken {

    @ApiModelProperty(value = "用户名", required = true, example = "admin")
    @NotNull(message = "用户名")
    private String username;

    @ApiModelProperty(value = "密码", required = true, example = "123456")
    @NotNull(message = "密码")
    private String password;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

}
